package com.zqweb.gulimall.order.feign;

import com.zqweb.common.utils.R;
import com.zqweb.gulimall.order.vo.WareLockVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("guli-mall-ware")
public interface WareFeignService {
    @PostMapping("/ware/waresku/hasStock")
    R hasStock(@RequestBody Long[] skuIds);
    @GetMapping("/ware/wareinfo/getFareByAddrId")
    R getFareByAddrId(@RequestParam("addrId") Long addrId);
    @PostMapping("/ware/waresku/lock/order")
    R lockOrder(@RequestBody WareLockVo wareLockVo);

}
